package com.example.suntest.controller;

import com.example.suntest.entity.TestDTO;
import com.example.suntest.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version 1.0
 * @Package: com.example.suntest.controller
 * @ClassName: TestController
 * @Author: sgq
 * @Date: 2024/8/12 16:34
 * @Description: TODD
 */
@RestController
public class TestController {
    @PostMapping("/test")
    public String test(@RequestBody TestDTO testDTO) {
        return "test ok !"+"=="+testDTO.getType();
    }

}
